<%@page isELIgnored="false" %>
<%@ include file="/WEB-INF/views/common/includes.jsp"%>

<div id="logo" class="span-16">
	<h1><a href="<c:url value='/${rc.locale.language}/'/>"><fmt:message key="site.header.title" /></a></h1>
	<hr/>
	<h4><fmt:message key="site.header.description" /></h4>
	<hr/>
</div>

<div id="welcome" class="span-8 last">
<sec:authorize access="isAuthenticated()">
	<div class="span-5">
  		<fmt:message key="message.generic.welcome" />: <sec:authentication property="principal.username" />
  	</div>
  	<div class="span-3 last">
  		<a href="<c:url value="/j_spring_security_logout"/>"><fmt:message key="action.login.logout"/></a>
  </div>
</sec:authorize>
<sec:authorize access="!isAuthenticated()">
  <a href="<c:url value='/${rc.locale.language}/login'/>"><fmt:message key="action.login.login"/></a>
</sec:authorize>
</div>

